#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
cd /home/wwwroot/msg-task-dispatch
nohup php /home/wwwroot/msg-task-dispatch/artisan schedule:run>> schedule.log 2>&1 &
echo "----------------------------------------------------------------------------"
                                                                                                                                                                                                                                                         endDate=`date +"%Y-%m-%d %H:%M:%S"`
                                                                                                                                                                                                                                                         echo "★[$endDate] Successful"
                                                                                                                                                                                                                                                         echo "----------------------------------------------------------------------------"